package com.input4hua.builder.director;

import com.input4hua.builder.builder.B.B1Builder;
import com.input4hua.builder.builder.B.B2Builder;
import com.input4hua.builder.builder.Builder;
import com.input4hua.builder.product.Product;

/**
 * Created by jiahua.hu on 2019/2/19.
 */
public class BDirector {

    private Builder b1builder = new B1Builder();
    private Builder b2builder = new B2Builder();

    public Product getB1Product() {
        b1builder.doPart();
        return b1builder.buildProduct();
    }

    public Product getB2Product() {
        b2builder.doPart();
        return b2builder.buildProduct();
    }
}
